(:: pragma bea:global-element-parameter parameter="$inventoryCheck1" element="ns0:InventoryCheck" location="../WSDLs/InventoryCheck.wsdl" ::)
(:: pragma bea:global-element-return element="ns1:getDataFromDB" location="../WSDLs/mockDB.wsdl" ::)

declare namespace ns1 = "http://www.example.org/mockDB/";
declare namespace ns0 = "http://www.example.org/InventoryCheck/";
declare namespace xf = "http://tempuri.org/flow_1/XSDs/inpotToMockDB/";

declare function xf:inpotToMockDB($inventoryCheck1 as element(ns0:InventoryCheck))
    as element(ns1:getDataFromDB) {
        <ns1:getDataFromDB>
            <macID>{ data($inventoryCheck1/macId) }</macID>
        </ns1:getDataFromDB>
};

declare variable $inventoryCheck1 as element(ns0:InventoryCheck) external;

xf:inpotToMockDB($inventoryCheck1)